package praktikumid.w06.p4;

public abstract class Animal extends Organism {

	private int noOfLegs;
	
	public int getNoOfLegs() {
		return this.noOfLegs;
	}
	
	public void setNoOfLegs(int noOfLegs) {
		if(noOfLegs < 0) {
			System.out.println("Must be positive integer!");
		}
		else
		{
			this.noOfLegs = noOfLegs;
		}
	}
	
	public void makeNoise() {
		System.out.println("Making noise...");
	}
	
	
}
